<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script> 
</head>
<body>

<p>尝试修改以下表单。</p>

<div ng-app="myApp" ng-controller="myCtrl">

名: <input type="text" ng-model="firstName"><br>
姓: <input type="text" ng-model="lastName"><br>
<br>
姓名: {{firstName + " " + lastName}}

<br>
来自后台的值: {{rs1.rs}}

<br>
来自后台的值: {{rs2}}

<br>
来自后台的值: {{rs3}}

</div>

<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope,$http) {
    $scope.firstName= "John";
    $scope.lastName= "Doe";
    $http.get("/test1")
    .then(function (response) {
    	console.log(response);
    	console.log(response.data);
    	$scope.rs1 = response.data;
    	});
    
    
    $http.get("/test2")
    .then(function (response) {
    	console.log(response);
    	console.log(response.data);
    	$scope.rs2 = response.data;
    	});
    
    $http.get("/test3")
    .then(function (response) {
    	console.log(response);
    	console.log(response.data);
    	$scope.rs3 = response.data;
    	});
    
    
});
</script>

</body>
</html>